Input Output Statements
System.Console.WriteLine : It is an output statement to print the string on output device.
Syntax: System.Console.WriteLine(“String”/var)
System.Console.WriteLine(”{0}{1}.....”,variables list);
System.Console.WriteLine(”String”+varibale);
System.Console.Write(”String”/var);
System.Console.ReadLine: It is an input statement to read the string from the input device. System.Console.Read takes the input in ASCII mode.
Syntax: var=System.Console.ReadLine();
Var=System.Console.Read()
System - Name Space
Console - Class
WriteLine - Method
ReadLine - Method
Program to print the name
class sample
{
static void Main()
{
System.Console.WriteLine("Welcome to C# World......");
}
}